<?php
class GridElement extends Renderable {
	
	private $class;
	private $content;
	
	public function __construct($elementId, $class, Renderable $content) {
		
		parent::__construct($elementId);
		
		$this->class = $class;
		$this->content = $content;
	}
	
	protected function renderElement() {
		
		echo '<div class="', $this->class, '" ', $this->formatAttributes(), '>';
		$this->content->render();
		echo '</div>';
	}
}